package com.bwie.mq;

import com.bwie.pojo.po.OrderPark;
import com.bwie.pojo.po.User;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OrderParkProducer {
    @Autowired
    private AmqpTemplate amqpTemplate;

    public void SmsOrderPark(User user){
        amqpTemplate.convertAndSend("orderParkkey",user);
    }
}
